#include <stdio.h>
#include <stdlib.h>
#include <string.h>

int checking_Palindrome(char word[]);

int main()
{
    char word[10];
    
    printf("Enter a word with no more than 10 characters:");
    gets ( word );
    
    checking_Palindrome(word);

if (checking_Palindrome (word))
		
	printf ("The word %s is a palindrome " , word);
	
	else   printf ("The word %s is not palindrome " , word);
	
	return 0; 
}
int checking_Palindrome(char word[]){{
	int i = 0 , j = strlen (word) - 1;
	
	while (i < j) {
		if ( word [i] == word [j]){
		i++;
		j--;
		}
		else
		return 0; }
		
		return 1;
    
}

